package Operation;

import Personnel.Student;
import Class.ClassMate;

public class ShowAllOperation implements Ioperation {

    @Override
    public void work(ClassMate classmate) {
        System.out.println("显示所有学生信息");
        int currentSize = classmate.getClassSize();
        for (int i = 0; i < currentSize ; i++) {
            Student student = classmate.getStudent(i);
            System.out.println(student.toString());
        }
    }
}
